//
//  VipCell.swift
//  SeeFM_Swift
//
//  Created by CBCT_MBP on 2021/7/6.
//

import UIKit

class VipCell: BaseTableViewCell {
    
    var icon = UIImageView()
    var title = UILabel()
    
    public func configWithModel(model: VipModel) {
        icon.image = UIImage(named: model.logoIcon ?? "")
        title.text = model.title ?? "未知平台"
    }
    
    override func setupSubviews() {
        
        contentView.addSubview(icon)
        contentView.addSubview(title)
        
        icon.snp.makeConstraints { (make) in
            make.left.equalTo(25)
            make.centerY.equalToSuperview()
            make.width.height.equalTo(40)
        }
        title.snp.makeConstraints { (make) in
            make.left.equalTo(100)
            make.centerY.equalToSuperview()
        }
        
    }

}
